import store from "store"
import { mapGetters, mapActions } from 'vuex'

const CleanFileStore = {
    store,
    computed: {
        ...mapGetters([
            'uploadImages',
            'uploadFiles'
        ])
    },
    methods: {
        ...mapActions([
            'updateUploadImages',
            'updateUploadFiles'
        ]),
    },
    async onReady() {
        await this.updateUploadImages([])
        await this.updateUploadFiles([])
    }
}

export default CleanFileStore
